<?php

namespace App\Http\Controllers;

use App\http\Model\staffModel;
use Illuminate\Http\Request;

class staffController extends Controller
{
    //
    function staffShow(Request $request){
        //获取数据
        $search=$request->input('search');
        //实例化模型
        $model=new staffModel();
        //调用模型方法
        $method=$model->staffShow($search);

        return view('staffShow',['data'=>$method],['search'=>$search]);
    }
}
